package com.jsh.erp.domain.model;


import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class TokenPayLoad {

    public TokenPayLoad() {
    }

    public TokenPayLoad(long userId, long expire, String clientIp, long tenantId, int version, boolean admin) {
        this.userId = userId;
        this.expire = expire;
        this.clientIp = clientIp;
        this.tenantId = tenantId;
        this.version = version;
        this.admin = admin;
    }

    private long userId;
    //token过期时间
    private long expire;
    //用户登录ip
    private String clientIp;
    //租户id
    private long tenantId;

    private int version;

    private boolean admin;

}
